import { Button } from "antd";
import { useGoTo } from "@/hooks";
import styles from "./index.module.less";
import { useUserContext } from "@/hooks/userHooks";
import { ROUTE_KEY } from "@/routes/menus";

/**
 *首页
 */
const Home = () => {
  const { store } = useUserContext();
  const { go } = useGoTo();
  return (
    <div className={styles.container}>
      <Button onClick={() => go(ROUTE_KEY.MY)}>
        去个人中心
        {store.tel}
      </Button>
    </div>
  );
};

export default Home;
